#include "StdAfx.h"
#include "XXAirLine.h"

CXXAirLine::CXXAirLine(void)
{
	m_iLineID = 0;
	m_strEnd = "";
	m_strStart = "";
	m_strDate = "";
	m_iExpectValue = 0;
	m_hShowItem = NULL;
	m_iCurMinValue = 0;
}


CXXAirLine::CXXAirLine(int id,CString strSt,CString strEd,CString strDt,int iExVal)
{
	m_iLineID = id;
	m_strEnd = strEd;
	m_strStart = strSt;
	m_strDate = strDt;
	m_iExpectValue = iExVal;
	m_hShowItem = NULL;
	m_iCurMinValue = 0;
}

CXXAirLine::CXXAirLine(CXXAirLine& obj)
{
	m_iLineID = obj.m_iLineID;

	m_strStart = obj.m_strStart;
	m_strEnd = obj.m_strEnd;
	m_strDate = obj.m_strDate;
	m_iExpectValue = obj.m_iExpectValue;
	m_hShowItem = obj.m_hShowItem;
	m_iCurMinValue = obj.m_iCurMinValue;

}


CXXAirLine::~CXXAirLine(void)
{
}

void CXXAirLine::SetAirLine(CString strSt,CString strEd,CString strDt,int iExVal)
{
	m_strEnd = strEd;
	m_strStart = strSt;
	m_strDate = strDt;
	m_iExpectValue = iExVal;
}

void CXXAirLine::SetShowItem(HTREEITEM ht)
{
	m_hShowItem = ht;
}

HTREEITEM CXXAirLine::GetShowItem()
{
	return m_hShowItem;

}

void CXXAirLine::SetLineID(int id)
{

	m_iLineID = id;
}
int CXXAirLine::GetLineID()
{
	return m_iLineID;
}


CString CXXAirLine::GetStartCity()
{
	return m_strStart;
}
CString CXXAirLine::GetEndCity()
{
	return m_strEnd;
}
CString CXXAirLine::GetLineDate()
{
	return m_strDate;
}
int		CXXAirLine::GetExpectValue()
{
	return m_iExpectValue;
}

void	CXXAirLine::SetCurMinValue(int iVal)
{
	m_iCurMinValue = iVal;
}
int		CXXAirLine::GetCurMinValue()
{
	return m_iCurMinValue;
}